package modules

import (
	"cld-quick-cli/controllers"
	"cld-quick-cli/router/middlewares"
	"github.com/gin-gonic/gin"
)

func FilesRouter(router *gin.Engine) {
	file := router.Group("/file")
	file.GET(`/download/:fileId`, controllers.DownloadFile())
	file.Use(middlewares.JWTAuthMiddleware())
	file.POST(`/singleUpload`, controllers.SingleUpload())
}
